import 'package:flutter/material.dart';

/// 神秘背景画布 - 报纸风格背景
class MysticalBackdropCanvas extends StatelessWidget {
  const MysticalBackdropCanvas({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: double.infinity,
      decoration: const BoxDecoration(
        image: DecorationImage(
          image: AssetImage('assets/images/auth-bg.png'), // 你需要添加报纸背景图
          fit: BoxFit.cover,
        ),
      ),
      child: Container(
        decoration: BoxDecoration(
          gradient: LinearGradient(
            begin: Alignment.topCenter,
            end: Alignment.bottomCenter,
            colors: [
              Colors.black.withValues(alpha: 0.1),
              Colors.black.withValues(alpha: 0.3),
            ],
          ),
        ),
      ),
    );
  }
}
